
const ModuleVerb = {
    state: {
        is_fixed: false,
        current_page: "",
        records: null,
        events: null,
    },
    getters: {
    },
    mutations: {
        updateIsFixed(state, is_fixed) {
            state.is_fixed = is_fixed;
        },
        updateCurrentPage(state, current_page) {
            state.current_page = current_page;
            localStorage.setItem('current_page', current_page);
        },
        updateRecords(state, records) {
            state.records = records;
            localStorage.setItem('records', JSON.stringify(records));
        },
        updateEvents(state, events) {
            state.events = events;
        }
    },
    actions: {
    },
    modules: {
    }
};

export default ModuleVerb;